﻿using AnesSystem.Controls;
using AnesSystem.Models;
using AnesSystem.Services;
using AnesSystem.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace AnesSystem
{
    /// <summary>
    /// MainWin.xaml 的交互逻辑
    /// </summary>
    public partial class FirstPage : Page
    {
        #region Variables

        private static FirstPage _instance;

        #endregion

        #region Constructor
        public FirstPage()
        {
            InitializeComponent();
            this.DataContext = FirstPageViewModel.Instance;
        }

        #endregion

        #region Properties

        public static FirstPage Instance
        {
            get
            {
                if (_instance == null)
                {
                    _instance = new FirstPage();
                }
                return _instance;
            }
        }


        #endregion

        #region 依赖属性

        #endregion

        #region Event

        #endregion

        #region Private Methods



        #endregion

        #region Public/Protected Methods

        #endregion

        #region EventHandlers

        private void Image_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            FullWindow.Instance.Close();
            PreviewPrintWindow.Instance.Close();
            DrugAndEventWindow.Instance.Close();
            VitalSignCapture.Instance.StopCapture();
            NavigateWin.Navigation.Close();
        }

        #endregion


    }
}
